#!/bin/bash

test -e bin/mini_httpd && exit

echo "####################"
echo "# $MINI_HTTPD"
echo "####################"

cd $DIR
test ! -e $MINI_HTTPD.tar.gz && wget http://www.acme.com/software/mini_httpd/$MINI_HTTPD.tar.gz
tar xzvf $MINI_HTTPD.tar.gz
cd $MINI_HTTPD

patch < ../../mini_httpd.Makefile.patch
#patch < ../../mini_httpd.c.patch
make clean
make
test "$STRIP" && $STRIP mini_httpd htpasswd
test -z "$STRIP" && strip mini_httpd htpasswd
